package com.yxw.springmvc.userBehavior.service.impl;

import com.yxw.springmvc.userBehavior.mapper.UserPwdMapper;
import com.yxw.springmvc.userBehavior.model.UserPwd;
import com.yxw.springmvc.userBehavior.service.UserPwdService;
import com.yxw.springmvc.userBehavior.validator.UserValidatorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by hp on 2016/9/21.
 */
@Service
@Slf4j
public class UserPwdServiceImpl implements UserPwdService{


    @Resource
    private UserPwdMapper userPwdMapper;

    @Override
    public void add(UserPwd userPwd) {
        userPwdMapper.insert(userPwd);
    }

    @Override
    public UserPwd selectPwdByUserCode(String userCode) {
        UserPwd userPwd = userPwdMapper.selectPwdByUserCode(userCode);
        return userPwd;
    }
}
